package com.caac.core.web.action.user;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import com.caac.core.web.action.BaseAction;
import com.caac.core.web.form.BaseForm;
import com.caac.core.web.form.UserForm;

import org.apache.struts.action.ActionForward;
import org.apache.struts.action.ActionMapping;

public class EditUserAction extends BaseAction {
    protected ActionForward doExecute(ActionMapping mapping, BaseForm form,
                                      HttpServletRequest request,
                                      HttpServletResponse response) throws java.
            lang.Exception {
        UserForm uf = (UserForm) form;
        uf.setUser(getUserFromCache(request, response));
        uf.setPassword(uf.getUser().getPassword());
        return forward(mapping);
    }
}
